//---------------------------------------------------------------------------

#ifndef cbufferH
#define cbufferH

class cbuffer16 // 16 bit buffer
{
  private:
    signed short *buffer;
    unsigned int writepos,buffersize;
  public:
    cbuffer16 ( unsigned int buffersize );
    ~cbuffer16();
    void write ( signed short data ) ;
    signed short read ( unsigned int offset ) ;
};

//---------------------------------------------------------------------------
#endif
